package com.tsinghuabigdata.edu.ddmath.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.tsinghuabigdata.edu.ddmath.R;
import com.tsinghuabigdata.edu.ddmath.bean.MyCourse;
import com.tsinghuabigdata.edu.ddmath.bean.SubmitQuestion;
import com.tsinghuabigdata.edu.ddmath.util.DateUtils;
import com.tsinghuabigdata.edu.ddmath.util.DensityUtils;
import com.tsinghuabigdata.edu.ddmath.util.WindowUtils;

import java.util.List;

/**
 * Created by Administrator on 2017/2/17.
 */

public class ToSubmitAdatper extends CommonAdapter<SubmitQuestion> {

    String[] weeks = {"周一", "周二", "周三", "周四", "周五", "周六", "周日"};

    public ToSubmitAdatper(Context context, List<SubmitQuestion> mDatas) {
        super(context, mDatas);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.item_to_submit;
    }

    @Override
    protected void convert(ViewHolder helper, int position, SubmitQuestion item) {
        String week = weeks[item.getWeekDay()];
        helper.setText(R.id.tv_week, week);
    }
}
